Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix endian swap on SocketAddrV6. #1964

Merged
merged 1 commit into from Jan 13, 2023
Merged

Fix endian swap on SocketAddrV6. #1964

merged 1 commit into from Jan 13, 2023

Conversation

aarond10
Copy link
Contributor

This is a bug. flowinfo and scope_id should not be byte swapped here.

See also #1963.

Copy link
Member

@asomers asomers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the breakage. Would it be possible to add a test that demonstrates the problem? Also, you should add a CHANGELOG entry.
It looks like the bug was introduced by #1711 .

Cargo.toml Outdated Show resolved Hide resolved
@aarond10
Copy link
Contributor Author

This is ready to go now.

@aarond10 aarond10 requested a review from asomers January 12, 2023 22:06
Copy link
Member

@asomers asomers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but don't forget the CHANGELOG.

flowinfo and scope_id should not be byte swapped.
Copy link
Member

@asomers asomers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors r+

@bors bors bot merged commit c5d6732 into nix-rust:master Jan 13, 2023
@asomers asomers mentioned this pull request Jan 17, 2023
bors bot added a commit that referenced this pull request Jan 17, 2023
1974: Prepare release 0.26.2 r=asomers a=asomers

Cherry-pick #1964 .

Co-authored-by: Aaron Drew <aarond10@gmail.com>
Co-authored-by: Alan Somers <asomers@gmail.com>
Co-authored-by: Jonathan <jonathanwoollettlight@gmail.com>
rwestphal added a commit to holo-routing/holo that referenced this pull request Jun 21, 2023
For multihop sessions to work, it's necessary to extract both the
source and destination addresses from each received packet. Achieving
this requires using lower-level APIs not directly supported by Tokio
or Rust's standard library. This commit introduces the usage of
the recvmsg() API from the nix crate to get that done. As result,
multihop sessions now work normally.

Additionally, the nix version has been updated to 0.26 to incorporate a
necessary bug fix [1].

[1] nix-rust/nix#1964

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
rwestphal added a commit to holo-routing/holo that referenced this pull request Jan 25, 2024
For multihop sessions to work, it's necessary to extract both the
source and destination addresses from each received packet. Achieving
this requires using lower-level APIs not directly supported by Tokio
or Rust's standard library. This commit introduces the usage of
the recvmsg() API from the nix crate to get that done. As result,
multihop sessions now work normally.

Additionally, the nix version has been updated to 0.26 to incorporate a
necessary bug fix [1].

[1] nix-rust/nix#1964

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants